package com.springboot.security.mapper;

import com.springboot.security.entity.Role;
import com.springboot.security.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author wangning
 * @create 2021-05-19 9:19
 */
@Mapper
@Repository
public interface UserMapper {
	User loadUserByUsername(String username);

	List<Role> getUserRoleByUid(Integer id);

}
